﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Platform.Model
{
	/// <summary>
	/// Lop bieu dien phien lam viec
	/// </summary>
	public class WorkSession
	{
		private static WorkSession _instance = null;

		/// <summary>
		/// Lay phien lam viec hien tai
		/// </summary>
		public static WorkSession Current
		{
			get { return _instance ?? (_instance = new WorkSession()); }
		}

		/// <summary>
		/// Khoi tao doi tuong quan ly phien lam viec
		/// </summary>
		private WorkSession()
		{
		}

		/// <summary>
		/// Nhan vien dang su dung phan mem
		/// </summary>
		public Employee CurrentUser { get; set; }

		/// <summary>
		/// Khach hang/sieu thi dat hang
		/// </summary>
		public Market Market { get; set; }

        /// <summary>
        /// Danh sach Store
        /// </summary>
        public List<Store> StoreList { get; set; }

        /// <summary>
        /// Danh sach Supplier
        /// </summary>
        public List<Supplier> SupplierList { get; set; }

        /// <summary>
        /// Danh sach Article
        /// </summary>
        public List<Article> ArticleList { get; set; }

		/// <summary>
		/// Thoi diem cap nhat du lieu cuoi cung
		/// </summary>
		public DateTime LastRefresh { get; set; }
	}
}
